Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Update Fork to contain fallback URL #3394

Merged
merged 3 commits into from
Sep 20, 2024
Merged

Conversation

supersonicbyte
Copy link
Collaborator

This PR updates the Fork enum to contain a fallback URL which we can resort to in cases where the Package we are referencing is deleted. More detailed information can be found in this PR.

@@ -337,6 +337,9 @@ public func configure(_ app: Application) async throws -> String {
do { // Migration 079 - Add `forked_from` to `repositories`
app.migrations.add(UpdateRepositoryAddForkedFrom())
}
do { // Migration 080 - Set`forkded_from` to NULL because of Fork model change in Repository
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Nit: forkded_from to forked_from

@@ -337,6 +337,9 @@ public func configure(_ app: Application) async throws -> String {
do { // Migration 079 - Add `forked_from` to `repositories`
app.migrations.add(UpdateRepositoryAddForkedFrom())
}
do { // Migration 080 - Set`forkded_from` to NULL because of Fork model change in Repository
app.migrations.add(UpdateRepositoryAddForkedFrom2())
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Another nit: Maybe UpdateRepositoryResetForkedFrom

@daveverwer daveverwer merged commit 08fb3dc into main Sep 20, 2024
5 checks passed
@daveverwer daveverwer deleted the add-forked-from-fallback branch September 20, 2024 09:49
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants